import request from '@/utils/request'
// 获取购物车的数量
export const GetCartNum = () => request.get('/cart/goodscount')
// 加入购物车
export const AddToCard = (params) => request.post('/cart/add', params)
// 获取购物车数据
export const getCartData = () => request.get('/cart/index')
// 切换商品选中状态
export const changeGoodsChecked = (params) => request.post('/cart/checked', params)
// 商品步进器
export const changeGoodsUpdate = (params) => request.post('/cart/update', params)
// 删除商品
export const deleteGoods = (params) => request.post('/cart/delete', params)
